#!/bin/sh

BINS="/sbin/fuser /usr/bin/killall /usr/bin/pstree /bin/pidof"
echo "Recreating original BusyBox links: "

for bin in $BINS
do
    if [ ${IPKG_INSTROOT}/busybox 2>&1 | grep ${bin##/*/} >/dev/null ]
    then
         echo "$bin "
         ln -sf ${IPKG_INSTROOT}/bin/busybox ${IPKG_INSTROOT}/$bin
    fi
done

exit 0
